package Demo1.operation;

import Demo1.Book.Book;
import Demo1.Book.Booklist;

public class ShowOperation implements IOperation{
    @Override
    public void work(Booklist booklist) {
        System.out.println("显示图书");
        int currenSize = booklist.getUsedSize();
        for (int i = 0; i < currenSize; i++) {
            Book book = booklist.getBooks(i);
            System.out.println(book);
        }
    }
}
